package com.xingkeduo.business.order.remote.feign;

import com.xingkeduo.dto.*;
import com.xingkeduo.dto.param.ActivityCombinationParam;
import com.xingkeduo.util.pojo.exception.BusinessException;
import com.xingkeduo.utils.ResponseUtils;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program xingkeduo_business_order
 * @description: 活动卡券信息fallback
 * @author: ch
 * @create: 2019/06/17 14:25
 */
@Service
public class MarketingFeignServiceImpl implements MarketingFeignService {
    @Override
    public ResponseUtils<MarketActivityDto> getRecommendedPackage(ActivityCombinationParam param) {
        return ResponseUtils.error("获取优活动卡券信息失败", BusinessException.Type.DEFAULT.getCode());
    }

    @Override
    public ResponseUtils<List<ActivityApiResponseVo>> getBatchHairdresserActivity(Long storeId, String hairStyleIds) {
        return ResponseUtils.error("获取门店内多个发型师活动详情失败", BusinessException.Type.DEFAULT.getCode());
    }

    @Override
    public ResponseUtils<MarketActivityDto> checkUserActivity(ActivityUseParam param) {
        return ResponseUtils.error("获取活动信息失败", BusinessException.Type.DEFAULT.getCode());
    }

    @Override
    public ResponseUtils<MarketActivityDto> getStoreBypassFlowActivityDetail(ActivityParam param) {
        return ResponseUtils.error("获取分流活动信息失败", BusinessException.Type.DEFAULT.getCode());
    }

    @Override
    public ResponseUtils refundOrder(ActivityUseParam activityUseParam) {
        return ResponseUtils.error("退卡 退券失败", BusinessException.Type.DEFAULT.getCode());
    }

    @Override
    public ResponseUtils placeOrder(ActivityUseParam activityUseParam) {
        return ResponseUtils.error("支付成功修改用户券，卡状态失败", BusinessException.Type.DEFAULT.getCode());
    }

    @Override
    public ResponseUtils<ReceiveAccount> bindReceiveAccount(String userId, String marketingId) {
        return null;
    }

    @Override
    public ResponseUtils<ReceiveAccount> bindCompensationReceiveAccount(String userId) {
        return ResponseUtils.error("补偿优惠券失败", BusinessException.Type.DEFAULT.getCode());
    }

    @Override
    public ResponseUtils<ReceiveAccount> bindBarberReceiveAccount(Long userId, String hairType) {
        return ResponseUtils.error("发送优惠券失败", BusinessException.Type.DEFAULT.getCode());
    }
}
